package com.ai_chat.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;
import java.time.LocalDateTime;


public class Payment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 充值订单主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户外键id
     */
    private Integer userId;

    /**
     * 套餐id
     */
    private Integer packageId;

    /**
     * 价格，单位分
     */
    private Integer price;

    /**
     * 支付编号
     */
    private String payNo;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 支付记录是否被删除
     */
    @TableLogic
    private Boolean deleted;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPackageId() {
        return packageId;
    }

    public void setPackageId(Integer packageId) {
        this.packageId = packageId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getPayNo() {
        return payNo;
    }

    public void setPayNo(String payNo) {
        this.payNo = payNo;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Payment{" +
            "id = " + id +
            ", userId = " + userId +
            ", packageId = " + packageId +
            ", price = " + price +
            ", payNo = " + payNo +
            ", payTime = " + payTime +
            ", deleted = " + deleted +
        "}";
    }
}
